package xxx.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import xxx.pojo.typehandler.ListIntegerTypeHandler;

import java.util.List;

/**
 * @author yuanchengman
 * @date 2021-08-16
 */
@Data
@TableName(value = "student", autoResultMap = true)
public class Student extends BaseEntity {
    /**
     * 姓名
     */
    @TableField(value = "name")
    private String name;

    /**
     * 性别
     */
    @TableField(value = "gender")
    private Integer gender;

    /**
     * 关注列表
     */
    @TableField(value = "focus", typeHandler = ListIntegerTypeHandler.class)
    private List<Integer> focus;
}
